package com.yuanfeng.job.mapper;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * @ClassName OrderConsignerMapper
 * @Description
 * @Author liulh
 * @Date 2023/5/17 14:38
 * @Version 1.0
 **/
@Mapper
public interface OrderConsignerMapper {

    /**
     * 查询虚拟订单时间
     *
     * @return
     */
    List<String> queryVirtualOrderTime();

    /**
     * 上传虚拟订单
     *
     * @param order
     */
    void upVirtualOrder(String order);

    /**
     * 根据订单id查订单金额
     * @param orderId
     * @return
     */
    Map<String,Object> selectUserMoneyByOrderId(String orderId);


    Integer selectByPrimaryKey(@Param("orderId")String orderId);


    boolean updateOrderAfterSaleTime(@Param("orderId") String orderId, @Param("returnTime") String returnTime);
}
